summaryrefslogtreecommitdiff
path: root/app/[lng]/procurement/(procurement)/report/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]/procurement/(procurement)/report/page.tsx')
-rw-r--r--app/[lng]/procurement/(procurement)/report/page.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/[lng]/procurement/(procurement)/report/page.tsx b/app/[lng]/procurement/(procurement)/report/page.tsx
index adeb31aa..2782c3ac 100644
--- a/app/[lng]/procurement/(procurement)/report/page.tsx
+++ b/app/[lng]/procurement/(procurement)/report/page.tsx
@@ -5,6 +5,11 @@ import { ErrorBoundary } from "@/components/error-boundary";
import { getDashboardData } from "@/lib/dashboard/service";
import { DashboardClient } from "@/lib/dashboard/dashboard-client";
+// 데이터 fetch 시 비동기 함수 호출 후 await 하므로 static-pre-render 과정에서 dynamic-server-error 발생.
+// 따라서, dynamic 속성을 force-dynamic 으로 설정하여 동적 렌더링 처리
+// getDashboardData 함수에 대한 Promise를 넘기는 식으로 수정하게 되면 force-dynamic 선언을 제거해도 됨.
+export const dynamic = 'force-dynamic'
+
export default async function IndexPage() {
// domain을 명시적으로 전달
const domain = "procurement";